package combine.order.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import combine.order.impl.dao.ibatis.FinishProductDaoIbatis;
import combine.order.model.FinishedManager;
import combine.order.model.FinishedProduct;
import combine.utils.DataPage;

@Service
public class FinishedProductImpl implements FinishedManager {

	@Autowired
	FinishProductDaoIbatis finishProductDaoIbatis;

	@Override
	public void insertFinishedProduct(FinishedProduct product) throws Exception {
		finishProductDaoIbatis.insert(product);
	}

	@Override
	public List<FinishedProduct> findAllFinishedProduct() throws Exception {
		return finishProductDaoIbatis.findAllFinishedProduct();
	}

	@Override
	public DataPage<FinishedProduct> findAllFinishedProductByPage(
			Integer pageSize, Integer pageNo) throws Exception {
		return finishProductDaoIbatis.findAllFinishedProductByPage(pageNo, pageSize);
	}


}
